<template>
  <div></div>
</template>

<script>
import ajax from "./axios/index";
export default {
  data() {
    return {};
  },
  methods: {
    // aj() {
    //   var ajax = new XMLHttpRequest();
    //   ajax.open("get", "http://localhost:3001/users/user-info?");
    //   ajax.send();
    //   ajax.onreadystatechange = function() {
    //     if (ajax.readyState == 4 && ajax.status == 200) {
    //       console.log(JSON.parse(ajax.responseText));
    //     }
    //   };
    // }
    aj() {
      ajax({
        url: "http://localhost:3001/users/user-info",
        method: "get",
        success:res=>{
          console.log(res)
        }
      });
    }
  },
  mounted() {
    this.aj();
  }
};
</script>

<style scoped>
</style>